<template>
  <div class="el-pagination-box">
    <span></span>
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page="_pageNumber"
      :page-size="_pageSize"
      layout="prev, pager, next"
      :total="_total">
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: "pagination",
  props: {
    pageSize: Number,
    pageNumber: Number,
    total: Number,
  },
  computed: {
    _pageSize() {
      return this.pageSize;
    },
    _pageNumber() {
      return this.pageNumber;
    },
    _total() {
      return this.total;
    }
  },
  methods: {
    handleCurrentChange(val) {
      this.$emit('currentChange', val)
    }
  }
}
</script>

<style scoped lang="scss">
::v-deep.el-pagination-box {
  display: flex;
  justify-content: flex-end;
  padding-top: 1vh;
  .btn-prev,
  .btn-next,
  .el-pager li{
    //background: rgba(255, 255, 255, 0) !important;
    &.active{
      // color:#ffffff;
      // background: #409EFF!important;
    }
  }
}
::v-deep .el-pagination{
  .btn-prev,
  .btn-next,
  .el-pager .number,
  .el-pager li.btn-quicknext,
  .el-pager li.btn-quickprev {
    font-size: 12px!important;
    outline: none!important;
    margin-right: 6px!important;
    // color:#fff;
    // border: 1px solid #57b2ff;
    // background: rgba(14, 42, 80, 0.6) !important;
  }
}
::v-deep .el-pager {
  li {
    min-width: 28.5px;
  }
} 
</style>
